﻿using UnityEngine;
using System.Collections;

public class s_follow : MonoBehaviour {

    public Transform player1;

    private Vector3 offset;

	// Use this for initialization
	void Start () {
        offset = transform.position - player1.position / 2;
	}
	
	// Update is called once per frame
	void Update () {
        transform.position = player1.position / 2 + offset;
	}
}
